package com.jd.charactercalculator.dao.impl;

import java.util.List;

import com.jd.charactercalculator.dao.UserDao;
import com.jd.charactercalculator.dao.common.BaseDao;
import com.jd.charactercalculator.dto.param.UserParamDto;
import com.jd.charactercalculator.entity.UserEntity;

/**
 * 
 *
 * @author:孙林
 * @since:2012上午11:04:08
 * @version:1.0.0
 */
public class UserDaoImpl extends BaseDao implements UserDao {


	
	@Override
	public List<UserEntity> getUsers(UserEntity userEntity) {
		return null;
	}

	@Override
	public boolean addUser(UserEntity userEntity) {
		boolean result = false;
		int row =  getSqlSession().insert("UserEntity.addUser",userEntity);
		if(row > 0){
			result = true;
		}else{
			result = false;
		}
		return result;
	}

	@Override
	public boolean updateUser(UserEntity userEntity) {
		return false;
	}

}
